package com.atcumt.Huawei;

import java.util.*;

public class HJ002 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        StringBuilder sb = new StringBuilder(s);
        System.out.println(sb.reverse());
    }
}
